package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 同步创客合同DTO
 * @author: yanming
 * @createDate: 2022/10/04 10:29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "同步创客合同DTO")
public class SyncDataWorkerAgreementDTO extends SyncDataDTO {
    private static final long serialVersionUID = 1374811583905239090L;


    @ApiModelProperty(value = "服务商统一信用代码")
//    @NotBlank(message = "服务商统一信用代码不能为空")
    private String taxCreditCode;

    @ApiModelProperty(value = "身份证号码", required = true)
    @NotBlank(message = "身份证号码不能为空")
    private String idCardCode;

    @ApiModelProperty(value = "合同类型", required = true)
    @NotNull(message = "合同类型不能为空")
    private String agreementType;

    @ApiModelProperty(value = "合同", required = true)
    @NotBlank(message = "合同不能为空")
    @URL(message = "请填写正确的合同链接")
    private String contract;

    @ApiModelProperty(value = "创建时间", required = true)
    @NotBlank(message = "创建时间不能为空")
    private String createDate;

    @ApiModelProperty(value = "签署时间", required = true)
    @NotBlank(message = "签署时间不能为空")
    private String signDate;

}